package com.kele.shiro.service;

import com.kele.shiro.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author kele
 * @since 2022-10-24
 */
@Service
public interface UserService extends IService< User > {
	//注册用户方法
	void register(User user);

	public User findByUserName(String username);

	List<String> findRoles( User user);

	List<String> findPermissions(User user);

	List<String> findRolesByCodes(User user);

	List<String> findPermissionsByCodes(User user);
}
